import request from '@/utils/request'

// 查询人脸抓拍记录列表
export function listCapture(query) {
  return request({
    url: '/student/capture/capture/list',
    method: 'get',
    params: query
  })
}

// 查询人脸抓拍记录详细
export function getCapture(id) {
  return request({
    url: '/student/capture/capture/' + id,
    method: 'get'
  })
}

// 新增人脸抓拍记录
export function addCapture(data) {
  return request({
    url: '/student/capture/capture',
    method: 'post',
    data: data
  })
}

// 修改人脸抓拍记录
export function updateCapture(data) {
  return request({
    url: '/student/capture/capture',
    method: 'put',
    data: data
  })
}

// 删除人脸抓拍记录
export function delCapture(id) {
  return request({
    url: '/student/capture/capture/' + id,
    method: 'delete'
  })
}
